<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\LampBook
 *
 * @property int $id 主键
 * @property int $uid 用户ID
 * @property string $bookname 书名
 * @property int $star 关注度
 * @method static \Illuminate\Database\Eloquent\Builder|LampBook newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|LampBook newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|LampBook query()
 * @method static \Illuminate\Database\Eloquent\Builder|LampBook whereBookname($value)
 * @method static \Illuminate\Database\Eloquent\Builder|LampBook whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|LampBook whereStar($value)
 * @method static \Illuminate\Database\Eloquent\Builder|LampBook whereUid($value)
 * @mixin \Eloquent
 */
class LampBook extends Model
{
    use HasFactory;

    protected $table = 'lamp_book';

    //关闭自定义时间戳字段
    public $timestamps = false;

    //批量添加允许字段
/*    protected $fillable = [
        'uid',
        'bookname',
    ];*/

    //不允许批量复制字段，取消限制字段需要置为空数组
    protected $guarded = [];
}
